package com.example.demomybatis.service;

import com.example.demomybatis.entity.User;
import com.example.demomybatis.entity.mapper.UserMapper;
import lombok.AllArgsConstructor;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * @ClassName UserService
 * @Description 用户业务类
 * @Author leejiliang
 * @DateTime 2020/8/31 12:29 PM
 * @Version 1.0
 */
@Service
@AllArgsConstructor
public class UserService {

	private final UserMapper userMapper;

	public List<User> getUsers() {
		return userMapper.selectList(null);
	}
}
